package gw.com.android.ui.home;

import android.content.Context;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.MotionEvent;

/**
 * 首页中热门讨论RecyclerView的滑动事件与ScrollView事件冲突，阻止RecyclerView消费掉事件
 *
 * @author jett
 * @since 2017-08-28.
 */
public class PreventRecyclerView extends RecyclerView {

    public PreventRecyclerView(Context context) {
        super(context);
    }

    public PreventRecyclerView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public PreventRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent e) {
        return false;
    }

}
